/*
 * @Author: FanWeiHua
 * @Date: 2021-07-08 10:44:21
 * @LastEditTime: 2021-07-15 14:16:24
 * @Description: 首页
 */
'use strict';
import React, { useEffect } from 'react';
import { Button } from 'antd-mobile';
import './index.less';
import { getName, modifyName } from '../../services/global';

const Index = () => {
  useEffect(() => {
    getName().then(result => {
      console.log(result);
    });
    modifyName().then(result => {
      console.log(result);
    });
    return () => {
      console.log('组件卸载');
    };
  }, []);
  return (
    <main className="black-index">
      <div className="universe animate__animated animate__fadeIn" />
      <Button className="content" type="primary">
        欢迎加入前端组，你的一言一行都在影响着他人
      </Button>
    </main>
  );
};
export default Index;
